import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import St_login from '@/components/St_login'
import Ad_login from '@/components/Ad_login'
import St_home from '@/components/St_home'
import Ad_home from '@/components/Ad_home'
import Ad_st_manager from '@/components/Ad_st_manager'
import Ad_sp_manager from '@/components/Ad_sp_manager'
import Ad_go_manager from '@/components/Ad_go_manager'
import Ad_pl_manager from '@/components/Ad_pl_manager'
import Ad_pd_manager from '@/components/Ad_pd_manager'
import St_go from '@/components/St_go'
import St_st from '@/components/St_st'
import St_pl from '@/components/St_pl'
import St_pd from '@/components/St_pd'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
    },
    {
      path: '/st_login',
      name: 'St_login',
      component: St_login,
    },
    {
      path: '/ad_login',
      name: 'Ad_login',
      component: Ad_login,
    },
    {
      path: '/st_home',
      name: 'St_home',
      component: St_home,
      children: [
        {
          path: '/st_go',
          name: 'St_go',
          component: St_go,
        },
        {
          path: '/st_st',
          name: 'St_st',
          component: St_st
        },
        {
          path: '/st_pl',
          name: 'St_pl',
          component: St_pl
        },
        {
          path: '/st_pd',
          name: 'St_pd',
          component: St_pd,
        }
      ],
    },
    {
      path: '/ad_home',
      name: 'Ad_home',
      component: Ad_home,
      children: [
        {
          path: '/ad_st_manager',
          name: 'Ad_st_manager',
          component: Ad_st_manager,
        },
        {
          path: '/ad_sp_manager',
          name: 'Ad_sp_manager',
          component: Ad_sp_manager,
        },
        {
          path: '/ad_go_manager',
          name: 'Ad_go_manager',
          component: Ad_go_manager,
        },
        {
          path: '/ad_pl_manager',
          name: 'Ad_pl_manager',
          component: Ad_pl_manager,
        },
        {
          path: '/ad_pd_manager',
          name: 'Ad_pd_manager',
          component: Ad_pd_manager,
        },
      ]
    },

  ]
})
